import instance from '../../utils/request';

export function findPurchaseInfoById(id) {
    //向后台发送请求，得到数据
    return instance.get(`/putStorage/purchaseInfo/${id}`);
}

export function findByIdGoods(searchParams) {
    //向后台发送请求，得到数据
    return instance.get(`/putStorage/purchaseGoods/`,{params: searchParams});
}

export function findAllType() {
    //向后台发送请求，得到数据
    return instance.get(`/putStorage/dic`);
}

export function submitImelList(imelId,imelList) {
    //向后台发送请求，得到数据
    return instance.post(`/putStorage/submitImel/${imelId}`,imelList);
}
export function findImelListById(imelId) {
    return instance.post(`/putStorage/findImelListById/${imelId}`);
}



export function updataIntoState(id) {
    //向后台发送请求，得到数据
    return instance.post(`/putStorage/updataIntoState/${id}`);
}

export function findGoodsStatus(id) {
    //向后台发送请求，得到数据
    return instance.post(`/putStorage/findGoodsStatus/${id}`);
}


export function updateIdStorageNum(id) {
    //向后台发送请求，得到数据
    return instance.post(`/putStorage/updateIdStorageNum/${id}`);
}